<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>stapes例子06</title>
    <script type="text/javascript" src="../lib/stapes-0.8.1/stapes.js"></script>
</head>
<body>
<h1>你好!!!</h1>

<script type="text/javascript">

    var Module = Stapes.subclass({
        "names": ['claire', 'alice'],
        sayName: function (i) {
            console.log("Hello " + this.names[i] + "!");
        }
    });

    /* var Module = new (Stapes.subclass());*/


    Module.extend({
        "names": ['claire', 'alice'],

        "sayName": function (i) {
            console.log("Hello " + this.names[i] + "!");
        }
    });

    //Module.names = ['javascript', 'python'];

    /*Module.extend({
     names : ['javascript', 'python']
     });*/

    var module = new Module();
    module.sayName(1); // 'alice'
</script>


</body>
</html>